package tv_megazineplus

class Programmation {
    Channel2 prog_channel
    Date prog_start
    Date prog_end
    String prog_duration
    String prog_title
    String prog_description
    
    static constraints = {
        prog_title(nullable: true)
        prog_description(nullable: true)
    }
    
    static mapping = {
        version false
        prog_description type: 'text' 
    }
    
    def getProgrammationName(){
        prog_title
    }
    
    String toString(){
        prog_title
    }
}
